<?php

namespace app\index\controller;

use think\exception\ValidateException;
use app\model\Indexpopup;

class IndexpopupController extends Base
{
    public function index()
    {
        $data = Indexpopup::where(['weid' => weid(), 'status' => 1])->order('id desc')->find()?->toArray();
        $data['pic'] = toimg($data['pic']);
        return $this->json(['data' => $data]);
    }
}
